<!--
        *前台公共头部部分
        * 
        *
        * @author     yuanxi 
-->
    <!--头部-->
    <div class="topper">
        <div class="wrapper">
            <div class="left-bar">
                <div class="back-home divider">
                    <em></em><a href="/homeindex/index">商城首页</a>
                </div>
                
            </div>
            <div class="right-bar">
                
                <span class=""></span>
                <div class="cart"><em></em>
                {if condition="$Think.session.carts_num"}
                <a href="/cart/index">购物车(<span id="cart_num" style="color:red;">{$Think.session.carts_num}</span>)</a>
                {elseif condition="$sum"}
                <a href="/cart/index">购物车(<span id="cart_num" style="color:red;">{$sum}</span>)</a>
                {else/}
                <a href="/cart/index">购物车(<span id="cart_num" style="color:red;">0</span>)</a>
                {/if}
                </div>
                <div class="order"><a href="/myorder/index/user_id/{$Think.session.uid}">我的订单</a><em></em></div>
                {if condition="$Think.session.username"}
                    <div class="login-user sub-menu">
                    <a class="menu-hd" href="/myuser/myuser/uid/{$Think.session.uid}">{$Think.session.username}</a>
                    </div>
                    <div class="logout divider"><a href="/login/logout">退出</a></div>
                {else/}
                 <div class="login-user sub-menu">
                    <a class="menu-hd" href="/login/login">登录</a>
                 </div>
                 <div class="logout divider"><a href="/register/register">注册</a></div>
                {/if}   
               
            </div>
        </div>
    </div>
    <div class="header-wrap">
        <div class="header wrapper">
            <a href="/homeindex/index" class="logo">
                <img src="/public/static/homes/img/logo3.png" alt="" />
            </a>
            <form action="/index/dosearch" method="post">
                <div class="header-schbox">
                    <div class="inner clearfix">
                        <div class="search-switch">
                            <div class="item">商品</div>
                        </div>
                        <input class="search-txt" placeholder="" name="name" value="">
                        <button class="search-btn" type="submit"></button>
                    </div>
                </div>
            </form>
            <div class="contact">
                <div class="item">
                    <span class="ico iconfont">&#xe61b;</span>
                    <span class="tel">400-000-0000</span>
                </div>
                <div class="item">
                     <span class="ico iconfont">&#xe61d;</span><a class="kefu">在线客服</a>
                </div>
            </div>
        </div>
    </div>
    <div class="nav-box">
        <div class="nav wrapper">
            <div class="slogan"></div>
            <ul class="nav-ul">
                <li><a href="/homeindex/index">首页</a></li>
                {foreach name="cate" item="value"}
                <li><a href="/homelist/index/id/{$value['id']}">{$value['name']}</a></li>
                {/foreach}
            </ul>
            <div class="nav-ad"><a class="ad" href=""><img src="/public/static/homes/uploads/nav-ad.jpg" alt="" /></a></div>
        </div>
    </div>

